<%-- 
    Document   : header
    Created on : 29 mars 2012, 15:34:41
    Author     : Fanny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Authentification</title>
    </head>
    <body>
       <c:if test="${!connecte}">
        <FORM METHOD="POST" ACTION="ServletConnexion" > 
            <label for="usernom">Nom d'utilisateur</label><input type="text" id="usernom" name="login"/><br />
            <label for="mdp">Mot de passe</label><input type="password" id ="mdp" name="motDePasse"/>
            <br /><input type="submit" value="OK"> 
            <input type="hidden" name="action" value="authentifier"/> 
        </form>
        </c:if>
        <c:if test="${connecte}">
            <a href="ServletConnexion?action=deconnexion">Déconnexion</a>
        </c:if>

    </body>
</html>
